<div class="modal fade" id="itemFormModal" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog" style="width: 450px">
        <form class="form-horizontal" role="form" method="post" action="add" id="saveForm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title">新增员工</h4>
                </div>
                <div class="modal-body clearfix">
                    <div class="form-group">
                        <label class="control-label col-xs-3">真实姓名</label>
                        <div class="col-xs-8">
                            <div>
                                <input type="text" name="realname" class="form-control">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">用户组</label>
                        <div class="col-xs-8">
                            <div>
                                <select name="role_id" class="form-control">
                                    <option value="">请选择</option>
                                    <?php foreach($roles as $k=>$v):?>
                                        <option value="<?= $k?>"><?= $v?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">手机号</label>
                        <div class="col-xs-8">
                            <div>
                                <input type="text" name="mobile" class="form-control">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3" style="padding-top: 0">性别</label>
                        <div class="col-xs-8">
                            <div>
                                <label style="margin-right: 20px">
                                    <input name="sex" type="radio" value="1" class="ace" />
                                    <span class="lbl"> 男</span>
                                </label>
                                <label>
                                    <input name="sex" type="radio" value="2" class="ace" />
                                    <span class="lbl"> 女</span>
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">身份证号</label>
                        <div class="col-xs-8">
                            <div>
                                <input type="text" name="idcard" class="form-control">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">入职时间</label>
                        <div class="col-xs-8">
                            <div>
                                <input type="text" name="join_at" class="form-control date-picker">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> 取消</button>
                    <button type="submit" class="btn btn-primary"><i class="fa fa-save"></i> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    ace.handles.functions.datePicker()
</script>
